<template>
    <div>hello 123

      {{num}}
    </div>
</template>

<script>
  import {getTest} from '@/api/api'
    export default {
        name: "test",
        data () {
          return {
            num: 1,
          }
        },
        methods: {
          initGet() {
            console.log(111)
            getTest().then(res => {
              console.log(res)
            })
          }
        },
        created() {
          this.initGet()
        }
    }
</script>

<style scoped>

</style>
